<?php
/**
 * 商品分类模型
*/

namespace app\common\model;

use think\model\concern\SoftDelete;

class GoodsCategory extends Model
{
    use SoftDelete;
    public $softDelete = true;
    protected $name = 'goods_category';
    protected $autoWriteTimestamp = true;

    //可搜索字段
    protected $searchField = ['name',];

    //是否显示:1-是;0-否获取器
public function getIsShowTextAttr($value, $data)
{
    return self::BOOLEAN_TEXT[$data['is_show']];
}//是否首页推荐：1-是；0-否获取器
public function getIsRecommendTextAttr($value, $data)
{
    return self::BOOLEAN_TEXT[$data['is_recommend']];
}

    

    
}
